package br.com.persist.core;

import br.com.persist.api.PersistentContext;
import br.com.persist.api.RuntimeExecutionException;
import br.com.persist.api.VolatileContext;

/**
 * Represents a compiled resource that can be directly and thread safely
 * executed.
 */
public abstract class PersistResource {

	protected abstract Object run(VolatileContext volatileContext, PersistentContext persistentContext) throws RuntimeExecutionException;
}
